import type { RouteRecordRaw } from 'vue-router';

import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    name: 'Mes/qc',
    path: '/mes/qc',
    redirect: 'noRedirect',
    meta: {
      title: $t('mes.mesqc.title'),
      icon: 'ic:baseline-10k',
      noCache: false,
    },
    children: [
      {
        name: 'Qcdefect',
        path: 'qcdefect',
        component: () => import('#/views/mes/qc/qcdefect/index.vue'),
        meta: {
          title: $t('mes.mesqc.children.Qcdefect.title'),
          icon: 'ic:baseline-bug-report',
        },
      },
      {
        name: 'Qcindex',
        path: 'qcindex',
        component: () => import('#/views/mes/qc/qcindex/index.vue'),
        meta: {
          title: $t('mes.mesqc.children.Qcindex.title'),
          icon: 'ic:outline-check-box',
        },
      },
      {
        name: 'Qctemplate',
        path: 'qctemplate',
        component: () => import('#/views/mes/qc/qctemplate/index.vue'),
        meta: {
          title: $t('mes.mesqc.children.Qctemplate.title'),
          icon: 'ic:baseline-donut-large',
        },
      },
      {
        name: 'Pendinginspect',
        path: 'pendinginspect',
        component: () => import('#/views/mes/qc/pendinginspect/index.vue'),
        meta: {
          title: $t('mes.mesqc.children.Pendinginspect.title'),
          icon: 'ic:baseline-edit-note',
        },
      },
      {
        name: 'Iqc',
        path: 'iqc',
        component: () => import('#/views/mes/qc/iqc/index.vue'),
        meta: {
          title: $t('mes.mesqc.children.Iqc.title'),
          icon: 'ic:baseline-edit-calendar',
        },
      },
      {
        name: 'Ipqc',
        path: 'ipqc',
        component: () => import('#/views/mes/qc/ipqc/index.vue'),
        meta: {
          title: $t('mes.mesqc.children.Ipqc.title'),
          icon: 'ic:twotone-library-books',
        },
      },
      {
        name: 'Rqc',
        path: 'rqc',
        component: () => import('#/views/mes/qc/rqc/index.vue'),
        meta: {
          title: $t('mes.mesqc.children.Rqc.title'),
          icon: 'ic:twotone-bookmark-remove',
        },
      },
      {
        name: 'Oqc',
        path: 'oqc',
        component: () => import('#/views/mes/qc/oqc/index.vue'),
        meta: {
          title: $t('mes.mesqc.children.Oqc.title'),
          icon: 'ic:sharp-directions-car-filled',
        },
      },
      {
        name: 'Batchtrace',
        path: 'batchtrace',
        component: () => import('#/views/mes/qc/batchtrace/index.vue'),
        meta: {
          title: $t('mes.mesqc.children.Batchtrace.title'),
          icon: 'ic:outline-add-circle-outline',
        },
      },
    ],
  },
];

export default routes;
